//
//  SectionView.m
//  BTRIP
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "SectionView.h"

@implementation SectionView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)dealloc{
    [_sectionLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.sectionLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 40)];
        self.sectionLabel.backgroundColor = [UIColor whiteColor];
        self.sectionLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.sectionLabel];
        [_sectionLabel release];
    }
    return self;
}



@end
